<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>恒盛电子商务管理平台--后台管理</title>
<link href="${contextPath}css/bootstrap.css" rel="stylesheet">
<link href="${contextPath}css/style.css" rel="stylesheet">
<link href="${contextPath}css/basic.css" rel="stylesheet">

<link rel="Stylesheet" href="${contextPath}js/My97DatePicker/skin/default/datepicker.css" type="text/css" />
<link rel="Stylesheet" href="${contextPath}js/My97DatePicker/skin/whyGreen/datepicker.css" type="text/css" />
<link rel="Stylesheet" href="${contextPath}js/My97DatePicker/skin/WdatePicker.css" type="text/css" />

<script src="${contextPath}js/jquery-1.11.0.min.js"></script>
<script src="${contextPath}js/My97DatePicker/lang/zh-cn.js" type="text/javascript"></script>
<script src="${contextPath}js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

<script type="text/javascript">
function browse_chooseFile(url) {
	window.opener.CKEDITOR.tools.callFunction(${callback}, url);
	window.close();
}
</script>
</head>

<body class="sidebar-left">

<form id="fileQueryForm" >
<table class="search_term_table" style="margin-top:10px;">
	<tr><th style="width:70px;">上传时间：</th>
		<td style="width:300px;"><input type="text" id="time1" name="time1" value="${time1}" style="width:80px;" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});"/> - <input type="text" id="time2" name="time2" value="${time2}" style="width:80px;" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});"/></td>
		<th style="width:70px;">图片名称：</th>
		<td style="width:150px;">
			<input type="text" name="name" value="${name}" style="width:100px;"/>
			<input type="hidden" id="page" name="page" />
	    	<input type="hidden" name="CKEditor" value="${CKEditor}" />
	    	<input type="hidden" name="CKEditorFuncNum" value="${CKEditorFuncNum}" />
	    	<input type="hidden" name="langCode" value="${langCode}" />
	    	<input type="hidden" name="cu" value="${cu}" id="cu"/></td>
	    <td><input type="checkbox" name="type" value="1" onclick="javascript:$('#fileQueryForm').submit();"<#if type?? && type == 1> checked</#if> /> 仅显示文件</td>
	    <td><a href="javascript:;" onclick="javascript: $('#cu').val('${cu_code}'); $('#fileQueryForm').submit();">[我的文件]</a>&nbsp;&nbsp;
	    	<a href="javascript:;" onclick="javascript: $('#cu').val(''); $('#fileQueryForm').submit();">[所有文件]</a></td>
		<td style="text-align:right;">
			<input type="submit" value="搜索" class="btn btn-info" />
		</td>
	</tr>
</table>
</form>
<#import "/freemarker/modeltype.ftl" as mt>
<table class="table table-bordered">
	<thead>
		<tr>
			<th scope="col">名称</th>
			<th scope="col">后缀</th>
			<th scope="col">上传时间</th>
			<th scope="col">文件大小</th>
			<th scope="col" style="width: 20px;">操作</th>
		</tr></thead>
	<tbody>
	<#list pageBean.resultList as f>
	<tr><td>${f.name}</td>
		<td>${f.ext}</td>
		<td>${f.ct?string('yyyy-MM-dd HH:mm')}</td>
		<td>${(f.size / 1024)?string('0')} Kb</td>
		<td><a class="btn btn-xs btn-info" href="javascript:;" onclick="javascript:browse_chooseFile('upload/${f.module}/${f.uuid}.${f.ext}');">
				<i class="icon-key"></i></a></td>
	</tr>
	</#list>
	</tbody>
</table>
<div style="float:right; margin-bottom:10px;"><#import "/freemarker/pagination.ftl" as p><@p.paginationSubmit1 pageBean 'imgQueryForm' 'page' /></div>
</body>
</html>
